home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / challenge / 12.09-Sep96 / Testcode96.09R1.sit.hqx / Testcode96.09R1 / 3 HelloWorld / HelloWorld.java < prev    next >
Text File  |  1996-08-14  |  367b  |  19 lines

  1.  
  2. import java.applet.Applet;
  3.  
  4.  
  5. public class HelloWorld extends Applet
  6. {
  7.     public String myHello()
  8.     {
  9.         return ("Hello,"+" "+"World!");
  10.         // if I understand the VM spec correctly, this should push a reference to the string Hello, World! on the caller's stack
  11.     }
  12.     public void start()
  13.     {
  14.         String s;
  15.         s = myHello();
  16.         System.out.println( "Correct result is " + s );
  17.     }
  18. }
  19.